package com.mo.mapper;

import com.mo.commons.DataScope;
import com.mo.model.TUser;
import com.mo.query.BaseQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TUsermapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    TUser selectByLoginAct(@Param("username") String username);

    @DataScope(tableAlias = "tu",tableField = "id")
    List<TUser> selectUserByPage(BaseQuery query);

    TUser selectDetailById(Integer id);

    int deleteByIds(List<String> idList);

    List<TUser>  selectByOwner();

    String selectPasswordById(Integer id);
}